<template>
  <div class="home">
    路由跳转传参：{{ name }}
    <img alt="Vue logo" src="../assets/logo.png" />
    <HelloWorld msg="Welcome to Your Vue.js App" />
  </div>
</template>

<script>
// @ is an alias to /src
import HelloWorld from "@/components/HelloWorld.vue";

export default {
  data() {
    return {
      name: null
    };
  },
  name: "HomeView",
  components: {
    HelloWorld,
  },
  created() {
    // this.name = this.$route.query.name;
    // alert("路由守卫导航传参："+this.$route.query.name);
  },
};
</script>
